package org.jackysoft.entity;

import javax.persistence.Entity;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.jackysoft.entity.AbstractEntity;

@Entity
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
public class YearPlan extends AbstractEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1035596600844083066L;
	// 添加业务属性
	private int year;
	private Product host;
	private Double value;

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public Product getHost() {
		return host;
	}

	public void setHost(Product host) {
		this.host = host;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SIMPLE_STYLE);
	}
	
	
	

}